package org.mybatis3.test4;

import org.mybatis3.service1.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test2 {
    public static void main(String[] args) {
//        UserService2
        ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext.xml");
        UserService2 userService2=(UserService2)context.getBean("userService2");
//        userService2.getUserName(5);
        userService2.getAge();
    }
}
